<template>
  <div>
    <h3>子组件 --- {{ count }}</h3>
    <button @click="count++">+1</button>
  </div>
</template>

<script>
export default {
  name: "MyCmp",
  data() {
    return {
      count: 1,
    };
  },
};
</script>

<style>
</style>